package com.aygxy.carproject.mapper;



import com.aygxy.carproject.pojo.user.entity.User;
import com.aygxy.carproject.pojo.user.vo.UserListItemVO;
import com.aygxy.carproject.pojo.user.vo.UserLoginInfoVO;
import com.aygxy.carproject.pojo.user.vo.UserStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface UserMapper {
    int countByUsername(String username);

    List<UserListItemVO> list();


    int countByPhone(String phone);

    int countByEmail(String email);

    UserLoginInfoVO getLoginInfoByUsername(String username);

    int insert(User user);

    UserStandardVO getStandardById(Long id);


    int deleteById(Long id);


    int update(User user);


}
